#ifndef VERTEX_TREE_ITEM_H
#define VERTEX_TREE_ITEM_H

#include "src/vertex.h"
#include "treeItem.h"

#include <QTreeWidgetItem>

class VertexTreeItem : public TreeItem {
	Q_OBJECT

    public:
        VertexTreeItem(QTreeWidgetItem * = 0, Vertex * = NULL);
        ~VertexTreeItem();

        void updateVertex(Vertex *);
        Vertex *getVertex();

    public slots:
        void select();

    signals:
        void selected(Vertex *);
//        void deselected(Vertex *);

    private:
        Vertex *v;
};

#endif
